package com.bwie.controller;
import com.bwie.domain.User;
import com.bwie.service.UserService;
import com.bwie.service.impl.UserServiceImpl;
import com.bwie.utils.R;
import org.springframework.web.bind.annotation.*;

import org.springframework.beans.factory.annotation.Autowired;

/**
* (t_user)表控制层
*
* @author xxxxx
*/
@RestController
@RequestMapping("/user/index")
public class UserController {
/**
* 服务对象
*/
    @Autowired
    private UserService userService;

    /**
     * @author: ❤
     * @description: 用户名称密码登录
     * @params: [com.bwie.domain.User]
     * @return: com.bwie.utils.R
     * @date: 2025/11/10 9:17
     */
    @PostMapping("myLogin")
    public R myLogin(@RequestBody User user){
        return userService.myLogin(user);
    }

}
